<?php
session_start();
$serveur ='localhost';
$user ='root';
$password ='';
$table ='test_kiwom';
mysql_connect($serveur, $user, $password); 
		mysql_select_db($table);
if(isset($_POST['pseudo']) && isset($_POST['pass'])){
	$rep=mysql_query("SELECT * FROM membres WHERE pseudo='".$_POST['pseudo']."' AND password='".md5($_POST['pass'])."' ");
	if(mysql_num_rows($rep)>0){
		$_SESSION['login']=$_POST['pseudo'];
		echo 'connexion';
		echo $_SESSION['login'];
	}else{
		echo 'non-connexion';
	}
	
}

?>
<a href='/kiwom2.0/'>forum</a><br/>
<form action='' method='post'>

Pseudo : <input type='text' name='pseudo' /><br/>
Pass : <input type='password' name='pass' /><br/>
<input type='submit' name='Go' /><br/>
</form>
